All Questions
Tagged with shellcommand-line
700 questions
2votes
0answers
84views
LLM-Agent User Interface
Is there such an agentic AI that interprets and executes commands from natural language input? I expect there is an agentic AI that executes commands from natural language input from humans. For ...
2votes
2answers
193views
turning list of file paths from one command into command-line arguments for another
I want to pass a list of file paths produced by one command (the KDE baloosearch6 program) as command-line arguments to another command (the KDE gwenview image viewer program). The age-old problem is ...
2votes
1answer
153views
linux shell ctrl-C doesn't work (using busybox)
I'm working on an arm64 system (Arm PL011) and I have ported linux 5.15.68 using u-boot-spl , busybox. In the past, I could use Ctrl-C in the linux shell by entering setsid cttyhack sh But somehow it ...
3votes
2answers
699views
How to limit the number of files printed by ls and print them in columns like ls prints normally?
Here is extension of the question: How do I limit the number of files printed by ls? with additional condition: how to print results in as many columns as fit to the current terminal width — as ls ...
0votes
0answers
94views
Why is `mv -f source target` so much slower than `rm -f target && mv source target`
I got a case where I need to overwrite some file with another and noticed a very significant slowdown when using "mv -f" if the target already exists and is being read. More specifically, ...
0votes
1answer
55views
Is the idea of having a login shell and a non-login shell merely a way of making user preferences? [duplicate]
Scouring the internet about the difference between a login shell and a non-login shell, it turns out that the ultimate difference is merely the files that are being sourced. A login shell sources some ...
8votes
3answers
738views
Is there an equivalent of caniuse for commands on posix systems?
I'm thinking about using a callout to the jq command in a utility script I'm writing, rather than parsing JSON manually. In order to make the script as portable as possible, I want to know which ...
0votes
3answers
118views
Play sound after command and also pipe output
I can easily pipe the output of a command like: some_command | less I can also easily play a sound after a command like: echo test; print \\a aplay, beep or others could also be used for sound. ...
1vote
0answers
102views
Shell: Customizing the "Display all N possibilities? (y or n)" message
I already know that double-pressing the Tab key on Bash terminal will enlist all files and folders in the current working directory or, when appropriate, show Linux executables that I can run. I want ...
1vote
0answers
327views
Bash terminal lagging one input behind
After a recent update, I've noticed that working on any terminal for more than a few minutes causes a delay between inputting a keypress and seeing it reflected on the screen. Specifically, if I were ...
0votes
1answer
168views
How to delete a directory whose name has special characters
My ./imap directory contains two folders with names containing special characters : ‘No’$‘\351’‘.sbd’ ‘S’$‘\351’‘gol’$‘\350’‘ne.sbd’ (these are the full names with no other characters added). The ...
1vote
2answers
110views
Where do I find documentation for the output of ls -l?
There have been multiple questions asked about this, like Understanding ls output, What are columns in ls -la?, What does 'ls -la' do?, What do the fields in ls -al output mean?, etc.. I've also come ...
0votes
1answer
298views
Permission denied error when starting terminal
I'm getting this error when I start my terminal: /home/USERNAME/.config/envman/PATH.env:2: permission denied: /home/USERNAME/.local/bin this is my .zshrc file: # Enable Powerlevel10k instant prompt. ...
6votes
1answer
641views
Order of shell expansions: command substitution versus arithmetic expansion
Consider the following snippet being entered at the command line in bash: $ echo $(( $(wc -l letter.txt | cut -c1-4)/66 + 1)) Supposing letter.txt exists and has 66*4 lines, then this puts the string ...
1vote
2answers
63views
Numbering files and restart for every folder in command line?
I use a little script to numbering files. I start it with a thunar custom action. This only works when all files are in the same directory. the new files name are 00001.ext to 00005.ext when I rename ...